package com.newsproject.pojo.vo;

import com.newsproject.pojo.Comment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVo {
    private int commentId;  //评论的id
    private int postId;     //评论的文章id
    private String content; //评论的内容
    private LocalDateTime Time ; //评论的创建时间
    private int userId;      //评论的用户id
    private String userName ;// 评论的用户名
    private String avatar ; // 评论的用户头像
    private String createdTime; // 评论的创建时间
    private int likeCount;//评论的点赞数
    private List<CommentVo> replies;//评论的回复
}
